package com.example.demo.Repository;

import com.example.demo.Entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface UserRepository extends JpaRepository<User,Integer> {

    public List<User> findAll();

    public User findById(int id);

//    @Query("select count(u) from user u")
//    public Integer countAll();
}
